<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<div class='head'>
	<div class='hleft'>
		<a href="${webInfo.domain }" title="${webInfo.title}" ><img width="160px" height="60px" alt="${webInfo.title}" src="images/logo.jpg" /></a>	
	</div>
	<div class='hcenter'> 
		<!-- 百度站内搜索 -->		<script type="text/javascript">document.write(unescape('%3Cdiv id="bdcs"%3E%3C/div%3E%3Cscript charset="utf-8" src="http://rp.baidu.com/rp3w/3w.js?sid=3602898532895211509') + '&t=' + (Math.ceil(new Date()/3600000)) + unescape('"%3E%3C/script%3E'));</script>	</div>
	<div class='hright'>
		<span onClick="javascript:setHome(this,'${webInfo.domain}');"
			style="CURSOR: hand"><font color="#000">[设为首页]</font>
		</span>		&nbsp; 	
		<span style="CURSOR: hand"	onClick="javascript:favor('${webInfo.title}','${webInfo.domain }')" title="${webInfo.title }"> <font color="#000">[收藏本站]</font>
		</span> 
		<span class="space_8">
			<BR/><h3><a target="_blank" href="${book.html }">${book.bookName }吧</a></h3> 
		</span>
	</div> 
</div>

<!-- banner -->
<div class="mainnav">
	<div class="mainnav_list"> 
		<a href="${webInfo.domain }">${webInfo.webName}</a>
		<c:forEach items="${categoryList}" var="item" begin="0" step="1" varStatus="statu">
			 <a href="${item.html }">${item.cateName }</a>
		</c:forEach>	 
	</div>
</div> 
 <%--
<div class="bdsharebuttonbox" title="分享一下,以后更方便找到">
<a href="#" class="bds_more" data-cmd="more"></a><a href="#" class="bds_mshare" data-cmd="mshare" title="分享到一键分享"></a><a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a><a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a><a href="#" class="bds_tieba" data-cmd="tieba" title="分享到百度贴吧"></a><a href="#" class="bds_hi" data-cmd="hi" title="分享到百度空间"></a><a href="#" class="bds_renren" data-cmd="renren" title="分享到人人网"></a><a href="#" class="bds_douban" data-cmd="douban" title="分享到豆瓣网"></a><a href="#" class="bds_tqf" data-cmd="tqf" title="分享到腾讯朋友"></a><a href="#" class="bds_ty" data-cmd="ty" title="分享到天涯社区"></a><a href="#" class="bds_kaixin001" data-cmd="kaixin001" title="分享到开心网"></a><a href="#" class="bds_ibaidu" data-cmd="bdhome" title="分享到百度新首页"></a><a href="#" class="bds_ibaidu" data-cmd="ibaidu" title="分享到百度个人中心"></a> 
</div> 
<script>window._bd_shre_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"32"},"share":{},"image":{"viewList":["mshare","qzone","tsina","tieba","hi","renren","douban","tqf","bdhome","ty","kaixin001","ibaidu"],"viewText":"分享","viewSize":"16"},"selectShare":{"bdContainerClass":null,"bdSelectMiniList":["mshare","qzone","tsina","tieba","hi","renren","douban","tqf","bdhome","ty","kaixin001","ibaidu"]}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
  --%> 

<script type="text/javascript">
	var pcDomain ="${webInfo.domain}";
	var phoneDomain ="${webInfo.domainPhone}";
	if(browser.versions.mobile){
	    if(browser.versions.android||browser.versions.iPhone||browser.versions.iPad||browser.versions.ios){
		    var href=window.location.href;
		    if(href.indexOf(pcDomain)>0){
		        window.location.href=phoneDomain+href.replace(pcDomain,phoneDomain);
			}
	    }
	}
</script>
